<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>Mark</title>

</head>
<body>
	<form oninput="totalPrice.value=parseInt(price.value)*parseInt(number.value)">
		type属性中 range表示范围，number表示数值型
		<!-- 0<input type="range" id="price" value="50000">4 -->
		<input type="text" id="price" value="5000">
		*<input type="number" id="number" value="1">=
		<output name="totalPrice" for="price number"></output>
	</form>
</body>
</html>